﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Ajax_PriceFilter.aspx.cs" Inherits="Ajax_Product_Ajax_PriceFilter" %>

<%@ Import Namespace="Core.Library" %>

<div class="space50">&nbsp;</div>
<div class="beta-products-list">
	<h4>Mới nhất</h4>
	<div class="beta-products-details">
		<p class="pull-left"><%= TotalRecords %> sản phẩm</p>
		<p class="pull-right">
			<span class="sort-by">Sort by </span>
			<select name="sortproducts" class="beta-select-primary">
				<option value="desc">Mới nhất</option>
				<option value="popular">Mua nhiều</option>
				<option value="rating">Khuyến mãi</option>
			</select>
		</p>
		<div class="clearfix"></div>
	</div>

	<div class="row list-product">
		<asp:Repeater ID="rptProduct" OnItemDataBound="rptProduct_ItemDataBound" runat="server">
            <ItemTemplate>
		    <div class="col-sm-4">
                <asp:HiddenField ID="hfCategoryId"  Value='<%# Eval("CategoryId") %>' runat="server"/>
                <asp:HiddenField ID="hfProductId"   Value='<%# Eval("ProductId") %>' runat="server"/>
                <asp:HiddenField ID="hfTitle"       Value='<%# Eval("Name") %>' runat="server"/>

			    <div class="single-item">
				    <div class="single-item-header">
					    <asp:Literal ID="ltrImage" runat="server"></asp:Literal>
				    </div>
				    <div class="single-item-body">
					    <p class="single-item-title"><asp:Literal ID="ltrTitle" runat="server"></asp:Literal></p>
					    <p class="single-item-price"><span><%# Utils.FormatPrice(ConvertUtility.ToDecimal(Eval("UnitPrice")))%> VNĐ</span></p>
				    </div>
				    <div class="single-item-caption">
					    <asp:Literal ID="ltrShoppingCart" runat="server"></asp:Literal>
					    <div class="clearfix"></div>
				    </div>
			    </div>
		    </div>
            </ItemTemplate>
        </asp:Repeater>
	</div>
</div> <!-- .beta-products-list -->



<!-- Sorting -->
<div class="beta-pagination text-center">
        <asp:Literal ID="ltPager" runat="server" />
</div>
<div class="clear"></div>
